-- GENERATED SPELL FOR [Tarren Mill Lookout] --


function spell0_18094(pUnit, Event) --@Concussive Shot,n/a--
pUnit:FullCastSpellOnTarget(17174,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18094', 3267, 1)
end

function spell1_18094(pUnit, Event) --@Corruption,n/a--
pUnit:FullCastSpellOnTarget(21068,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18094', 26000, 1)
end

function spell2_18094(pUnit, Event) --@Curse of Infinity,n/a--
pUnit:FullCastSpellOnTarget(31977,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18094', 507, 1)
end

function spell3_18094(pUnit, Event) --@Serpent Sting,n/a--
pUnit:FullCastSpellOnTarget(35511,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18094', 15000, 1)
end

function spell4_18094(pUnit, Event) --@Shadow Bolt,n/a--
pUnit:FullCastSpellOnTarget(15232,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18094', 3000, 1)
end

function spell5_18094(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18094', 537, 1)
end

function spell6_18094(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16100,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18094', 616, 1)
end

function Sorts_18094(pUnit, Event)
local choix_sorts_18094 = math.random(0, 6)
if choix_sorts_18094 == 0 then
pUnit:RegisterEvent('spell0_18094', 1, 1)
end
if choix_sorts_18094 == 1 then
pUnit:RegisterEvent('spell1_18094', 1, 1)
end
if choix_sorts_18094 == 2 then
pUnit:RegisterEvent('spell2_18094', 1, 1)
end
if choix_sorts_18094 == 3 then
pUnit:RegisterEvent('spell3_18094', 1, 1)
end
if choix_sorts_18094 == 4 then
pUnit:RegisterEvent('spell4_18094', 1, 1)
end
if choix_sorts_18094 == 5 then
pUnit:RegisterEvent('spell5_18094', 1, 1)
end
if choix_sorts_18094 == 6 then
pUnit:RegisterEvent('spell6_18094', 1, 1)
end
end

function mob18094_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18094', math.random(1500, 3000), 1)
end

function mob18094_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18094_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18094_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18094, 1, 'mob18094_Action')
RegisterUnitEvent(18094, 2, 'mob18094_Leave')
RegisterUnitEvent(18094, 3, 'mob18094_Kill')
RegisterUnitEvent(18094, 4, 'mob18094_Die')
